import { Routes, RouterModule }  from '@angular/router';
import { UserComponent } from './user.component';
import { UserDetailComponent } from './detail/user-detail.component';

const routes: Routes = [
  {
    path: '',
    component: UserComponent
  },
  {
      path:'detail/:user_id',
      component: UserDetailComponent
  },
];

export const routing = RouterModule.forChild(routes);